package com.wlw.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.wlw.entity.Foreign;

import edu.xjsoft.base.service.DefaultEntityManager;

@Service
@Transactional
public class ForeignService extends DefaultEntityManager<Foreign> {

	/**
	 * 旅游攻略导航（国外）
	 */
	public List<Foreign> Allforeigns(){
		String hql = "select f from Foreign f where f.country != ?";
		List<Foreign> foreigns = getEntityDao().find(hql,"中国");
		return foreigns;
	}
}
